package com.entity;

import java.io.Serializable;
import javax.persistence.*;
import java.math.BigDecimal;


/**
 * The persistent class for the PRICESTRATEGY database table.
 * 
 */
@Entity
@NamedQuery(name="Pricestrategy.findAll", query="SELECT p FROM Pricestrategy p")
public class Pricestrategy implements Serializable {
	private static final long serialVersionUID = 1L;

	@Id
	@SequenceGenerator(name="PRICESTRATEGY_PRICESTRATEGYID_GENERATOR", sequenceName="SEQ",initialValue=1,allocationSize=1)
	@GeneratedValue(strategy=GenerationType.SEQUENCE, generator="PRICESTRATEGY_PRICESTRATEGYID_GENERATOR")
	@Column(name="PRICESTRATEGY_ID")
	private long pricestrategyId;

	@Column(name="PS_DEFAULT")
	private BigDecimal psDefault;

	@Column(name="PS_NAME")
	private String psName;

	@Column(name="PS_PRICE")
	private BigDecimal psPrice;

	@Column(name="PS_START")
	private BigDecimal psStart;

	//bi-directional many-to-one association to Product
	@ManyToOne
	@JoinColumn(name="ID")
	private Product product;

	public Pricestrategy() {
	}

	public long getPricestrategyId() {
		return this.pricestrategyId;
	}

	public void setPricestrategyId(long pricestrategyId) {
		this.pricestrategyId = pricestrategyId;
	}

	public BigDecimal getPsDefault() {
		return this.psDefault;
	}

	public void setPsDefault(BigDecimal psDefault) {
		this.psDefault = psDefault;
	}

	public String getPsName() {
		return this.psName;
	}

	public void setPsName(String psName) {
		this.psName = psName;
	}

	public BigDecimal getPsPrice() {
		return this.psPrice;
	}

	public void setPsPrice(BigDecimal psPrice) {
		this.psPrice = psPrice;
	}

	public BigDecimal getPsStart() {
		return this.psStart;
	}

	public void setPsStart(BigDecimal psStart) {
		this.psStart = psStart;
	}

	public Product getProduct() {
		return this.product;
	}

	public void setProduct(Product product) {
		this.product = product;
	}

}